//
//  CommonTools.swift
//  WeiBO28
//
//  Created by 飞奔的羊 on 16/5/13.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit
let SwithRootVCNotification = "SwithRootVCNotification"
let DidSeletedEmoticonNotification = "DidSeletedEmoticonNotification"
//点击删除表情按钮发送的筒子们
let DidSeletedDeleteEmoticonButtonNotification = "DidSeletedDeleteEmoticonButtonNotification"
//获取屏幕宽度
let ScreenWidth = UIScreen.mainScreen().bounds.size.width
//获取屏幕的高度
let ScreenHeight = UIScreen.mainScreen().bounds.size.height

func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) ->UIColor {


return UIColor(red: red, green: green, blue: blue, alpha: 1)
}

func RandomColor() -> UIColor {
	let red = random() % 256
	let greed = random() % 256
	let blue = random() % 256
	

return RGB(CGFloat(red) / 255, green: CGFloat(greed) / 255, blue: CGFloat(blue) / 255)
}